namespace Maple.Branch.Identity.Configurations
{
    public class IdentityConfigurations
    {
        public const string IdentityPath = "Identity";

        public const string AuthenticationPath = "Authentication";

        public const string SwaggerPath = "Swagger";

        public AuthenticationConfigurations Authentication { get; set; } = new AuthenticationConfigurations();

        public SwaggerConfigurations Swagger { get; set; } = new SwaggerConfigurations();
    }

    public class AuthenticationConfigurations
    {
        /// <summary>
        /// 令牌颁发机构(URL)
        /// </summary>
        public string Authority { get; set; }

        public string ApiName { get; set; }

        public bool RequireHttpsMetadata { get; set; }
    }

    public class SwaggerConfigurations
    {
        public string Name { get; set; }

        public string Title { get; set; }

        public string Version { get; set; }

        public string Description { get; set; }

        public string TermsOfService { get; set; }

        public string LicenseName { get; set; }

        public string LicenseUrl { get; set; }
    }
}
